home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / stringex / Makefile < prev    next >
Encoding:
Makefile  |  2000-01-01  |  1.1 KB  |  54 lines

  1. #######################################################################
  2. #
  3. # Makefile to compile all examples and convert them to LaTeX
  4. #######################################################################
  5.  
  6. # Compiler
  7. PP=ppc386
  8.  
  9. # Unit directory
  10. # UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
  11.  
  12.  
  13. # Any options you wish to pass.
  14. PPOPTS=
  15.  
  16. # Script to convert the programs to LaTeX examples which can be included.
  17. PP2TEX=../pp2tex
  18.  
  19. # Script to collect all examples in 1 file.
  20. MAKETEX=make1tex
  21.  
  22. #######################################################################
  23. # No need to edit after this line.
  24. #######################################################################
  25.  
  26. ifdef UNITDIR
  27. PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
  28. endif
  29.  
  30. .SUFFIXES: .pp .tex
  31.  
  32. .PHONY: all tex clean
  33.  
  34. OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 ex15 ex16 ex17
  35.  
  36. TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
  37.  
  38. all : $(OBJECTS)
  39.  
  40. tex : $(TEXOBJECTS)
  41.  
  42. onetex : tex
  43.     $(MAKETEX) $(TEXOBJECTS)
  44.  
  45. clean : 
  46.     rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
  47.  
  48. $(OBJECTS): %: %.pp
  49.     $(PP) $(PPOPTS) $*
  50.  
  51. $(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
  52.     $(PP2TEX) $*
  53.